/**
 * 系统公用函数定义.
 */
var sys = sys || {};

sys.common = {};

sys.common.showAndHideQueryBox = function(obj) {
	
	var queryBox = $('#query_form');
	if (queryBox.is(':visible')) {
		queryBox.slideUp(500, function() {
			$(obj).find('span').text('展开查询条件');
		});
	} else {
		queryBox.slideDown(500, function() {
			$(obj).find('span').text('隐藏查询条件');
		});
	}
};

